﻿using System.Text.RegularExpressions;

public static partial class Utility
{
    /// <summary>
    /// 输入工具库
    /// </summary>
    public static class InputField
    {
        /// <summary>
        /// 账号输入限制
        /// </summary>
        private const string USER_NAME_PATTERN = @"([^A-Za-z0-9@\-_]+$)";

        public static string GetFixedUserName(string text)
        {
            string result = Regex.Replace(text, USER_NAME_PATTERN, "");
            return result;
        }

    }
}
